import request from '@/utils/request'

// 查询告警规则管理
export function pageEvent(query) {
  return request({
    url: '/event/page',
    method: 'get',
    params: query
  })
}

// 刷新
export function refreshEvent(query) {
  return request({
    url: '/event/refresh',
    method: 'get',
    params: query
  })
}

//获取图片
export function pictureUrl(id) {
  return request({
    url: 'event/pictureUrl',
    method: 'get',
    params:{id}
  })
}

//获取视频
export function getVideo(id) {
  return request({
    url: 'event/video/',
    method: 'get',
    params:{id},
    // timeout: 200000
  })
}
